import * as winax from "winax";

let excel = new winax.Object('Excel.Application', {
    activate: true, // Allow activate existance object instance, false by default
    async: true, // Allow asynchronius calls, true by default (for future usage)
    type: true	// Allow using type information, true by default
});

//尝试合并指定的单元格
for (let i = 14; i < 37; i++)
{
    excel.Range(`F${i}:G${i}`).Merge();
}